//
//  MessageBaseCell.h
//  ChangChat
//
//  Created by Cocoa on 2019/8/21.
//  Copyright © 2019 yibai. All rights reserved.
//

#import "YBBaseCell.h"
#import "MsgContentView.h"
#import "MsgModel.h"

#define Chat_Icon_Margin_Left 15
#define Chat_Icon_Size 40
#define Chat_Icon_Margin_Right 10
#define Chat_Status_Margin_Left 30
#define Chat_Status_Margin_Right 10
#define Chat_Status_Size 20
#define Chat_MsgContent_MaxWidth (ScreenWidth - Chat_Icon_Margin_Left \
                                              - Chat_Icon_Size \
                                              - Chat_Icon_Margin_Right \
                                              - Chat_Status_Margin_Left \
                                              - Chat_Status_Margin_Right \
                                              - Chat_Status_Size)
#define Chat_MsgContent_Padding 13



NS_ASSUME_NONNULL_BEGIN

@interface MessageBaseCell : YBBaseCell

///  头像
@property (nonatomic, strong) UIImageView *iconImgView;
///  昵称
@property (nonatomic, strong) UILabel *nicknameLable;
///  消息容器视图
@property (nonatomic, strong) MsgContentView *msgContentView;
///  消息发送指示器
@property (nonatomic, strong) UIActivityIndicatorView *sendingView;
///  消息发送失败提示
@property (nonatomic, strong) UIButton *sendFailedBtn;
///  是否显示昵称  default NO
@property (nonatomic, assign) BOOL isDisplayNickname;
///  消息方向  1: send  2: receive
@property (nonatomic, assign) int msgDirection;
@property (nonatomic, strong) UITapGestureRecognizer *msgContentViewTapGR;

///  消息体
@property (nonatomic, strong) MsgModel *msgModel;

@property (nonatomic, strong) void (^tapMessageAction)(void);
@property (nonatomic, strong) void (^longPressMessageAction)(void);
@property (nonatomic, strong) void (^tapIconAction)(BOOL is_me);

@end

NS_ASSUME_NONNULL_END
